package com.hbnu.controller;

import com.hbnu.pojo.Goods;
import com.hbnu.service.GoodsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/goods")
public class GoodsController {
    @Resource
    private GoodsService goodsService;

    @RequestMapping("/findGoods")
     public List<Goods> findGoods(){
         return goodsService.findAllGoods();
     }

}
